//
//  TopImageCell.m
//  FinancialProduct
//
//  Created by Stella on 2017/9/22.
//  Copyright © 2017年 maq. All rights reserved.
//

#import "Header.h"
#import "UIColor+NN.h"
#import "CKPuslichTool.h"
#import "TopImageCell.h"

@implementation TopImageCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    [self InitSDCycleScrollView];
}
-(void)InitSDCycleScrollView{
    //    [self.myArray addObject:@"http://s2.sinaimg.cn/middle/5ea0f97b4c75a869594b1&690"];
    //    [self.myArray addObject:@"http://img5.duitang.com/uploads/item/201409/04/20140904204800_8FfKM.jpeg"];
    NSArray *picA=@[@"banner-1",@"banner-2"];
    self.myScrollView.bannerImageViewContentMode = UIViewContentModeScaleAspectFill;
    self.myScrollView.placeholderImage = [UIImage imageNamed:@"homeLoading"];
    self.myScrollView.infiniteLoop = YES;
    self.myScrollView.backgroundColor=[UIColor whiteColor];
    UIViewSetRadius(self.myScrollView, 0, 0.5,[UIColor groupTableViewBackgroundColor]);
    //    self.myScrollView.imageURLStringsGroup = _myArray;
    self.myScrollView.localizationImageNamesGroup = picA;
//    self.myScrollView.delegate=self;
    self.myScrollView.currentPageDotColor= [UIColor colorWithHexString:@"#BB3535"];
    self.myScrollView.pageDotColor=[UIColor whiteColor];
    self.myScrollView.autoScrollTimeInterval = 4.0;
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
